<header class="header m-b-15">
    <div class="container d-flex">
        <div class="header-left">
            <a href=""><img src="/static/frontend/img/logo.svg" alt="" class="header-left-logo"></a>
        </div>
        <div class="header-center d-flex">
            <div class="header-center-menu">
                <ul class="layui-nav header-center-menu-ul bg-white  d-flex" lay-filter="">
                    {foreach $frontmenu as $k=>$v}
                        {if empty($v.childlist)}
                            <li class="layui-nav-item {if app('request')->url() == $v.link}  layui-this {/if}">
                                <a href="{$v.link}">{$v.title}</a>
                            </li>
                        {else /}
                            <li class="layui-nav-item  {if app('request')->url() == $v.link}  layui-this {/if}">
                                <a href="javascript:;">{$v.title}</a>
                                <dl class="layui-nav-child">
                                    {foreach $v.childlist as $key=>$value}
                                    <dd><a href="{$value.link}">{$value.title}</a></dd>
                                    {/foreach}
                                </dl>
                            </li>
                        {/if}
                    {/foreach}
                </ul>
            </div>
            <div class="header-center-search d-flex">
                <ul class="layui-nav header-center-menu-ul header-center-search-type bg-white d-flex">
                    <li class="layui-nav-item">
                        <a href="javascript:;" id="search-text">{$search_list[0]['title']??'站内'}</a>
                        <dl class="layui-nav-child">
                            {foreach $search_list as $k=>$v}
                            <dd><a href="javascript:;" data-type="{$v.type}" data-info="{$v.info}">{$v.title}</a></dd>
                            {/foreach}
                        </dl>
                    </li>
                </ul>
                <input type="text" class="layui-input" placeholder="{$search_list[0]['info']??'站内搜索'}" name="key"
                       id="search-input">
                <button class="layui-btn layui-btn-primary" id="search-btn"
                        data-type="{$search_list[0]['type']??'site'}">搜索
                </button>
            </div>

        </div>
        <div class="header-right">
            <div class="header-right-btn d-flex">
                <a class="layui-btn layui-btn-normal" onclick="javascript:layui.layer.msg('暂不开放登陆');return false;" href="{:url('auth_login')}"> 登陆</a>
                <a class="layui-btn layui-btn-danger" onclick="javascript:layui.layer.msg('暂不开放注册');return false;" href="{:url('auth_register')}"> 注册</a>
            </div>
            <!-- 登陆后 -->
            <!--   <ul class="layui-nav header-center-menu-ul bg-white d-flex">
                <li class="layui-nav-item">
                    <a href="">通知<span class="layui-badge-dot layui-bg-orange"></span></a>
                </li>
                <li class="layui-nav-item">
                    <a href=""><img src="//t.cn/RCzsdCq" class="layui-nav-img">我</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">修改信息</a></dd>
                        <dd><a href="javascript:;">安全管理</a></dd>
                        <dd><a href="javascript:;">退了</a></dd>
                    </dl>
                </li>
            </ul> -->

        </div>
    </div>
</header>
